How an Accelerometer in a Smartphone Works to Track Your Movement

How an Accelerometer in a Smartphone Works to Track Your Movement Featured Image

Out of all the components of a smartphone, the accelerometer probably holds the title for the most technologically fascinating, yet also underappreciated, gadget on the device. When you want a picture to be landscape or portrait on your phone, all you have to do is turn the phone in the direction you want, and the screen follows you. Have you ever wondered how the phone recognized that you had tilted the phone in that direction?

Also read: What You Need to Know About 360 Degree Photography

In order to respond to the phone being rotated, it has to detect which way you’re moving it. An accelerometer is a great way to achieve this, and they come in all shapes and sizes. Despite this, accelerometers typically contain the same three variables:
  • The casing of the accelerometer which moves along with the device it’s installed within. This acts as the base of the sensor that moves at the same rate as the device.
  • The moving part of the accelerometer which moves as the casing shifts around it. This movement depends on how much the device is tilted.
  • The sensors on the accelerometer which look at the moving part and monitor how much the device has moved depending on the result.

accelerometers-landscape

While there are many ways to perform this, the ones you’ll find in smartphones (and other devices) typically come in two forms: capacitance and piezoelectric accelerometers.

What Are Capacitance Accelerometers?

KZVgKu6v808 maxresdefault

These are both very complicated-sounding words, but don’t worry – they’re quite simple in practice! First, let’s explore capacitance accelerometers.

Do you know those physical ball maze toys you sometimes find in Christmas crackers? Imagine one of those, but it’s just a blank square without obstacles. Imagine you have also hooked up the sides of the square to detect when the metal ball hits the sides. As you tilt the square, the ball rolls over to and hits one of the sides, triggering the sensor.

Of course, mobile phones don’t have small ball-maze puzzles inside of them! What they do have, however, is something similar. Instead of a ball, the phone uses a grid that’s suspended on supports. These supports have a bit of leniency, allowing the grid to shift around slightly as the phone moves.

In between the sections of the grid are little “fingers” that sense where the grid is. As the phone tilts, the grid moves on its supports toward the movement, and the fingers detect this movement. The fingers report back on which way the phone tilted.

What Are Piezoelectric Accelerometers?

accelerometers-piezoelectric

On the other hand, piezoelectric accelerometers get their name from the piezoelectric effect, which the accelerometer uses to gauge orientation.

Imagine if I had you stand with your back to the wall, holding a mattress at arm’s length with your eyes closed. I then ask you to report to me if you notice the mattress moving. You can’t see the mattress, but you can feel how it’s moving.

Now, if I push or pull on the mattress, it causes stress in your arms. Either you feel the mattress being tugged away or pushed toward you. From this feeling alone, you can tell whether I’m tugging or pushing the mattress.

Piezoelectric accelerometers work similarly. They use a mechanism that pushes and pulls against a crystal, which in turn emits electricity depending on the stress being applied. This stress is then translated into movement measurements.

Tilting and Turning

Accelerometers are an amazing and intriguing part of a smartphone, yet they go woefully underappreciated. Now you know how they work and how they detect which way your phone is going.

How important is the accelerometer in your own phone? Let us know below.

Image Credit: Wikipedia

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Simon Batt Avatar

Read next

In November 1988, an unmanned Soviet space shuttle called Buran flew a full orbital mission and landed itself in a blizzard at Baikonur without a single human input, and three years later the country that built it no longer existed.
In 1901, sponge divers off the Greek island of Antikythera pulled a corroded lump of bronze out of a Roman shipwreck, and it sat in an Athens museum for half a century before anyone realised they had found a 2,000-year-old computer that could predict eclipses 19 years in advance.
When Boeing 747-400 pilots needed to update their navigation database as late as 2020, a technician would walk onto the flight deck with eight 3.5-inch floppy disks and feed them one at a time into a slot beside the captain’s seat, because recertifying anything newer than the 1989 avionics would have cost hundreds of millions of dollars.
When the U.S. military finally deployed frequency-hopping spread spectrum on Navy ships during the 1962 Cuban Missile Crisis blockade, the patent that described the technique had expired three years earlier, and its inventor was watching the news in a Los Angeles bungalow without any idea her idea was at sea.
Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
In the small hours of 2 September 1859, a telegraph operator in Portland, Maine disconnected his batteries because they were throwing sparks, and then discovered he could still send a clean message to Boston using nothing but the current the aurora was pushing through the wire above his head.
In 1992, a container ship leaving Hong Kong lost 28,800 plastic bath toys overboard in the North Pacific, and oceanographer Curtis Ebbesmeyer spent the next two decades tracking yellow ducks and blue turtles as they washed up in Alaska, Maine, and eventually the coast of Scotland, quietly rewriting the textbook map of ocean currents.
In 1942, Hollywood actress Hedy Lamarr and avant-garde composer George Antheil received US Patent 2,292,387 for a frequency-hopping radio system synchronised by a perforated paper roll borrowed from a player piano, a technique the Navy filed away as unworkable and which now underpins every Wi-Fi router, Bluetooth earbud, and GPS receiver on Earth.